package com.example.innovate.domain;

import java.util.ArrayList;
import java.util.List;

public class NewFieldDOExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public NewFieldDOExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andFieldIdIsNull() {
            addCriterion("field_id is null");
            return (Criteria) this;
        }

        public Criteria andFieldIdIsNotNull() {
            addCriterion("field_id is not null");
            return (Criteria) this;
        }

        public Criteria andFieldIdEqualTo(Integer value) {
            addCriterion("field_id =", value, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdNotEqualTo(Integer value) {
            addCriterion("field_id <>", value, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdGreaterThan(Integer value) {
            addCriterion("field_id >", value, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("field_id >=", value, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdLessThan(Integer value) {
            addCriterion("field_id <", value, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdLessThanOrEqualTo(Integer value) {
            addCriterion("field_id <=", value, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdIn(List<Integer> values) {
            addCriterion("field_id in", values, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdNotIn(List<Integer> values) {
            addCriterion("field_id not in", values, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdBetween(Integer value1, Integer value2) {
            addCriterion("field_id between", value1, value2, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldIdNotBetween(Integer value1, Integer value2) {
            addCriterion("field_id not between", value1, value2, "fieldId");
            return (Criteria) this;
        }

        public Criteria andFieldChNameIsNull() {
            addCriterion("field_ch_name is null");
            return (Criteria) this;
        }

        public Criteria andFieldChNameIsNotNull() {
            addCriterion("field_ch_name is not null");
            return (Criteria) this;
        }

        public Criteria andFieldChNameEqualTo(String value) {
            addCriterion("field_ch_name =", value, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameNotEqualTo(String value) {
            addCriterion("field_ch_name <>", value, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameGreaterThan(String value) {
            addCriterion("field_ch_name >", value, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameGreaterThanOrEqualTo(String value) {
            addCriterion("field_ch_name >=", value, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameLessThan(String value) {
            addCriterion("field_ch_name <", value, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameLessThanOrEqualTo(String value) {
            addCriterion("field_ch_name <=", value, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameLike(String value) {
            addCriterion("field_ch_name like", value, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameNotLike(String value) {
            addCriterion("field_ch_name not like", value, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameIn(List<String> values) {
            addCriterion("field_ch_name in", values, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameNotIn(List<String> values) {
            addCriterion("field_ch_name not in", values, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameBetween(String value1, String value2) {
            addCriterion("field_ch_name between", value1, value2, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldChNameNotBetween(String value1, String value2) {
            addCriterion("field_ch_name not between", value1, value2, "fieldChName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameIsNull() {
            addCriterion("field_eng_name is null");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameIsNotNull() {
            addCriterion("field_eng_name is not null");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameEqualTo(String value) {
            addCriterion("field_eng_name =", value, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameNotEqualTo(String value) {
            addCriterion("field_eng_name <>", value, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameGreaterThan(String value) {
            addCriterion("field_eng_name >", value, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameGreaterThanOrEqualTo(String value) {
            addCriterion("field_eng_name >=", value, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameLessThan(String value) {
            addCriterion("field_eng_name <", value, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameLessThanOrEqualTo(String value) {
            addCriterion("field_eng_name <=", value, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameLike(String value) {
            addCriterion("field_eng_name like", value, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameNotLike(String value) {
            addCriterion("field_eng_name not like", value, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameIn(List<String> values) {
            addCriterion("field_eng_name in", values, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameNotIn(List<String> values) {
            addCriterion("field_eng_name not in", values, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameBetween(String value1, String value2) {
            addCriterion("field_eng_name between", value1, value2, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldEngNameNotBetween(String value1, String value2) {
            addCriterion("field_eng_name not between", value1, value2, "fieldEngName");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewIsNull() {
            addCriterion("field_is_view is null");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewIsNotNull() {
            addCriterion("field_is_view is not null");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewEqualTo(Boolean value) {
            addCriterion("field_is_view =", value, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewNotEqualTo(Boolean value) {
            addCriterion("field_is_view <>", value, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewGreaterThan(Boolean value) {
            addCriterion("field_is_view >", value, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewGreaterThanOrEqualTo(Boolean value) {
            addCriterion("field_is_view >=", value, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewLessThan(Boolean value) {
            addCriterion("field_is_view <", value, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewLessThanOrEqualTo(Boolean value) {
            addCriterion("field_is_view <=", value, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewIn(List<Boolean> values) {
            addCriterion("field_is_view in", values, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewNotIn(List<Boolean> values) {
            addCriterion("field_is_view not in", values, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewBetween(Boolean value1, Boolean value2) {
            addCriterion("field_is_view between", value1, value2, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldIsViewNotBetween(Boolean value1, Boolean value2) {
            addCriterion("field_is_view not between", value1, value2, "fieldIsView");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceIsNull() {
            addCriterion("field_surface is null");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceIsNotNull() {
            addCriterion("field_surface is not null");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceEqualTo(String value) {
            addCriterion("field_surface =", value, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceNotEqualTo(String value) {
            addCriterion("field_surface <>", value, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceGreaterThan(String value) {
            addCriterion("field_surface >", value, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceGreaterThanOrEqualTo(String value) {
            addCriterion("field_surface >=", value, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceLessThan(String value) {
            addCriterion("field_surface <", value, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceLessThanOrEqualTo(String value) {
            addCriterion("field_surface <=", value, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceLike(String value) {
            addCriterion("field_surface like", value, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceNotLike(String value) {
            addCriterion("field_surface not like", value, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceIn(List<String> values) {
            addCriterion("field_surface in", values, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceNotIn(List<String> values) {
            addCriterion("field_surface not in", values, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceBetween(String value1, String value2) {
            addCriterion("field_surface between", value1, value2, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldSurfaceNotBetween(String value1, String value2) {
            addCriterion("field_surface not between", value1, value2, "fieldSurface");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeIsNull() {
            addCriterion("field_attribute is null");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeIsNotNull() {
            addCriterion("field_attribute is not null");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeEqualTo(String value) {
            addCriterion("field_attribute =", value, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeNotEqualTo(String value) {
            addCriterion("field_attribute <>", value, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeGreaterThan(String value) {
            addCriterion("field_attribute >", value, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeGreaterThanOrEqualTo(String value) {
            addCriterion("field_attribute >=", value, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeLessThan(String value) {
            addCriterion("field_attribute <", value, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeLessThanOrEqualTo(String value) {
            addCriterion("field_attribute <=", value, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeLike(String value) {
            addCriterion("field_attribute like", value, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeNotLike(String value) {
            addCriterion("field_attribute not like", value, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeIn(List<String> values) {
            addCriterion("field_attribute in", values, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeNotIn(List<String> values) {
            addCriterion("field_attribute not in", values, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeBetween(String value1, String value2) {
            addCriterion("field_attribute between", value1, value2, "fieldAttribute");
            return (Criteria) this;
        }

        public Criteria andFieldAttributeNotBetween(String value1, String value2) {
            addCriterion("field_attribute not between", value1, value2, "fieldAttribute");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}